from django import forms
from common.utils.custom_form_field import JsonArrayDateField, JsonArrayField


class GetKeyMapperForm(forms.Form):
    page_id = forms.CharField(required=False)


class PermissionListForm(forms.Form):
    request_method = forms.IntegerField(required=False)
    allowed_page_id = forms.CharField(max_length=1024, required=False)
    min_role_level = forms.IntegerField(required=False)
    desc = forms.CharField(max_length=1024, required=False)
    created_at = forms.DateTimeField(required=False)
    updated_at = forms.DateTimeField(required=False)
    size = forms.CharField(required=False)
    page = forms.CharField(required=False)


class Role(forms.Form):
    time_range = JsonArrayDateField()
    get_new_user = forms.BooleanField(required=False)
    game_id_list = JsonArrayField()
    size = forms.CharField(required=False)
    page = forms.CharField(required=False)
